#ifndef __BSDSOCKETDEF_H__
#define __BSDSOCKETDEF_H__

extern "C"
{
#include <tcp.h>
#include <sockets.h>

#define bsdSocket       ::lwip_socket
#define bsdBind         ::lwip_bind
#define bsdSelect       ::lwip_select
#define bsdListen       ::lwip_listen
#define bsdClose        ::lwip_close
#define bsdAccept       ::lwip_accept
#define bsdConnect      ::lwip_connect
#define bsdSend         ::lwip_send
#define bsdRecv         ::lwip_recv
#define bsdSendto       ::lwip_sendto
#define bsdRecvfrom     ::lwip_recvfrom
#define bsdSetsockopt   ::lwip_setsockopt
#define bsdGetsockname  ::lwip_getsockname
}

#endif //#define __BSDSOCKETDEF_H__

